"""
URL configuration for User_Management project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from app01 import views

urlpatterns = [
    # path("admin/", admin.site.urls),
    # 用户管理
    path("user/list/", views.user_list),
    path("user/add/", views.user_add),
    path("user/delete/", views.user_delete),
    path("user/<int:nid>/edit/", views.user_edit),
    path("user/<int:nid>/role/", views.user_role),
    # 角色管理
    path("role/list/", views.role_list),
    path("role/add/", views.role_add),
    path("role/delete/", views.role_delete),
    path("role/<int:nid>/edit/", views.role_edit),
    path("role/<int:nid>/label/", views.role_label),
    # 菜单管理
    path("label/list/", views.label_list),
    path("label/add/", views.label_add),
    path("label/delete/", views.label_delete),
    path("label/<int:nid>/edit/", views.label_edit),
    # 登录
    path("login/", views.login),
    path("logout/", views.logout),  # 注销
    path("main/", views.main),  # 控制面板
    # 功能管理
    path("type/", views.type),  # 借书
    path("process/", views.process),  # 还书
    path("params/", views.params),  # 参数管理
    path("message/", views.message),  # 预约图书
    path("cert/", views.cert),  # 图书入库
    path("auth_project/", views.auth_project),  # 项目审核
    path("auth_cert/", views.auth_cert),  # 实名认证审核
    path("auth_adv/", views.auth_adv),  # 广告审核
    path("advertisement/", views.advertisement),  # 查询书库
]
